import request from '@/utils/request.js'

//发送手机验证码
export function send(data) {
	return request({
		url: 'addons/fzsc/sms/send',
		method: 'POST',
		data
	})
}
//检测手机验证码
export function check(data) {
	return request({
		url: 'addons/fzsc/sms/check',
		method: 'POST',
		data
	})
}
//微信登录
export function login(data) {
	return request({
		url: 'addons/fzsc/user/login',
		method: 'POST',
		data
	})
}
//退出登录
export function logout(data) {
	return request({
		url: 'addons/fzsc/user/logout',
		method: 'POST',
		data
	})
}
//绑定微信
export function binding(data) {
	return request({
		url: 'addons/fzsc/user/binding',
		method: 'POST',
		data
	})
}
//解除绑定微信
export function remove(data) {
	return request({
		url: 'addons/fzsc/user/remove',
		method: 'POST',
		data
	})
}
//用户信息
export function userInfo(data) {
	return request({
		url: 'addons/fzsc/user/userInfo',
		method: 'POST',
		data
	})
}
// 修改用户信息
export function profile(data) {
	return request({
		url: 'addons/fzsc/user/profile',
		method: 'POST',
		data
	})
}
// 收藏商品
export function collection(data) {
	return request({
		url: 'addons/fzsc/user/collection',
		method: 'POST',
		data
	})
}
// 加入购物车
export function joinCar(data) {
	return request({
		url: 'addons/fzsc/order/joinCar',
		method: 'POST',
		data
	})
}
// 减少购物车
export function reduce(data) {
	return request({
		url: 'addons/fzsc/order/reduce',
		method: 'POST',
		data
	})
}
// 获取收货地址列表
export function addressList(data) {
	return request({
		url: 'addons/fzsc/user/addressList',
		method: 'POST',
		data
	})
}
// 添加收货地址
export function addAddress(data) {
	return request({
		url: 'addons/fzsc/user/addAddress',
		method: 'POST',
		data
	})
}
// 获取收藏列表
export function collectionList(data) {
	return request({
		url: 'addons/fzsc/user/collectionList',
		method: 'POST',
		data
	})
}
// 我的评论列表
export function commentList(data) {
	return request({
		url: 'addons/fzsc/user/commentList',
		method: 'POST',
		data
	})
}
// 获取回复列表
export function getReply(data) {
	return request({
		url: 'addons/fzsc/order/getReply',
		method: 'POST',
		data
	})
}
// 回复评论
export function replyComment(data) {
	return request({
		url: 'addons/fzsc/order/replyComment',
		method: 'POST',
		data
	})
}
// 删除评论
export function delComment(data) {
	return request({
		url: 'addons/fzsc/order/delComment',
		method: 'POST',
		data
	})
}
// 生成订单
export function create(data) {
	return request({
		url: 'addons/fzsc/order/create',
		method: 'POST',
		data
	})
}
// 发起支付
export function pay(data) {
	return request({
		url: 'addons/fzsc/order/pay',
		method: 'POST',
		data
	})
}
// 获取openid
export function get_openid(data) {
	return request({
		url: 'addons/fzsc/user/get_openid',
		method: 'POST',
		data
	})
}
// 获取订单列表
export function order_list(data) {
	return request({
		url: 'addons/fzsc/order/list',
		method: 'POST',
		data
	})
}
// 取消订单
export function cancel(data) {
	return request({
		url: 'addons/fzsc/order/cancel',
		method: 'POST',
		data
	})
}
// 获取订单详情
export function order_detail(data) {
	return request({
		url: 'addons/fzsc/order/detail',
		method: 'POST',
		data
	})
}
// 分享评论
export function shareComment(data) {
	return request({
		url: 'addons/fzsc/order/shareComment',
		method: 'POST',
		data
	})
}
// 提交评论
export function comment(data) {
	return request({
		url: 'addons/fzsc/order/comment',
		method: 'POST',
		data
	})
}
// 申请退款
export function refund(data) {
	return request({
		url: 'addons/fzsc/order/refund',
		method: 'POST',
		data
	})
}
// 取消退款
export function cancel_refund(data) {
	return request({
		url: 'addons/fzsc/order/cancel_refund',
		method: 'POST',
		data
	})
}
// 寄回商品
export function exchange(data) {
	return request({
		url: 'addons/fzsc/order/exchange',
		method: 'POST',
		data
	})
}
// 确认收货
export function confirm_receipt(data) {
	return request({
		url: 'addons/fzsc/order/confirm_receipt',
		method: 'POST',
		data
	})
}
// 删除订单
export function del_order(data) {
	return request({
		url: 'addons/fzsc/order/del_order',
		method: 'POST',
		data
	})
}
// 领取优惠券
export function draw(data) {
	return request({
		url: 'addons/fzsc/coupon/draw',
		method: 'POST',
		data
	})
}
//我的优惠券列表
export function list(data) {
	return request({
		url: 'addons/fzsc/coupon/list',
		method: 'POST',
		data
	})
}
//获取可用优惠券列表
export function usable(data) {
	return request({
		url: 'addons/fzsc/coupon/usable',
		method: 'POST',
		data
	})
}
//催货
export function urge(data) {
	return request({
		url: 'addons/fzsc/user/urge',
		method: 'POST',
		data
	})
}
//历史搜索
export function searchList(data) {
	return request({
		url: 'addons/fzsc/user/searchList',
		method: 'POST',
		data
	})
}
// 再来一单
export function again(data) {
	return request({
		url: 'addons/fzsc/order/again',
		method: 'POST',
		data
	})
}